#pragma once


#ifndef ATRIBUT
#define ATRIBUT
#include"Atribut.cpp"
#endif

class LDAP_Result
{
protected:
	char *raspuns;
	bool Succes;

	//pentru toate operatiile mai putin operatia de search
	//rezultatul operatiei va fi o colectie de variabile care descriu efectuarea
	//cu succes sau nu a operatiei

public:
	LDAP_Result(char *ras,bool s);

	LDAP_Result(const LDAP_Result& result);

	LDAP_Result& operator=(const LDAP_Result& result);

	virtual ~LDAP_Result(void);

	virtual void afisareResult()
	{
		if(Succes && !strstr(raspuns,"NULL message"))
		{
			printf("\n->The server has processed the operation send: \n");
			printf("\n->The response send by server is: \n");
			printf("%s\n\n",raspuns);
		}
		else
		{
			printf("\n->The operation send didn't be processed or the entry didn't exist!!\n");
		}
	}

	bool getState ()const
	{
		return Succes;
	}

	//ceva metode pentru a putea prelucra mai departe informatia extrasa
	//aici sau in clasele derivate!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

	//virtual vector<Atribut<char*>> daAtribute()const;
	//doar pentru search
	//fie dynamic_cast, fara suprascriere de functii

};

